package com.ruoyi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.pojo.Product;
import com.ruoyi.service.ProductService;
import com.ruoyi.mapper.ProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author xlz
* @description 针对表【product】的数据库操作Service实现
* @createDate 2023-07-18 16:38:43
*/
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product>
    implements ProductService{

    @Autowired
    private ProductMapper productMapper;


    @Override
    public int addProdut(Product product) {
        return productMapper.insert(product);
    }
}




